/*
 * @Author: Xujianchen
 * @Date: 2025-08-08 14:11:49
 * @LastEditors: Xujianchen
 * @LastEditTime: 2025-08-08 16:27:37
 * @Description: 套餐接口
 */
import { http } from '@/common/request'

// 获取套餐列表
export function getMealList(page = 1) {
  return http({
    url: '/api/v1/plan/list',
    method: 'post',
    data: {
      page,
      pageSize: 10
    }
  })
}

// 创建订单
export function createOrder(planUuid) {
  return http({
    url: '/api/v1/plan/order/create',
    method: 'post',
    data: {
      planUuid
    }
  })
}

// 获取套餐订单列表
export function getMealOrderList(page = 1) {
  return http({
    url: '/api/v1/plan/order/list',
    method: 'post',
    data: {
      page,
      pageSize: 10,
    }
  })
}

// 获取套餐订单详情
export function getMealOrderDetail(orderNo) {
  return http({
    url: '/api/v1/plan/order/detail',
    method: 'post',
    data: {
      orderNo
    }
  })
}